/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pbl_servidor;

import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Asuka
 */
public class QuemEstaOnline implements Runnable {

    private Socket socketCliente;
    private PBL_Servidor pbl_serv;
    private List<Socket> listaSocketsOnline;

    public QuemEstaOnline(Socket cliente, PBL_Servidor serv, List<Socket> socketsOnline) {
        this.pbl_serv = serv;
        this.socketCliente = cliente;
        this.listaSocketsOnline = socketsOnline;
        //listaSocketsOnline = new ArrayList<Socket>();
    }

    public void run() {
        //   while(true){
        for (int l = 0; l < this.listaSocketsOnline.size(); l++) {
            Socket socketcliente = (Socket) listaSocketsOnline.get(l);
//                QuemEstaOnline QeO = new QuemEstaOnline(socketcliente, this);
//                new Thread(QeO).start();
         //   pbl_serv.AtualizaUsuariosOnline(socketcliente);
        }
        
        
        //      }

    }
}
